<?php
  include "counter2.php";
  session_start();

  $default_language = $_SESSION['lang'];
  set_language_environment($default_language);

pagestart();
print "<html>\n";
pagehead(_("Machine registration update"));
print "\n<BODY bgcolor=\"white\">";
pagetop(_("Machine registration update"));

print "<FORM METHOD=POST action=\"/cgi-bin/runscript/machine-validate.cgi\">";

print "<div id=\"userid\">" .
"<!-- this section is replaced in update script -->";
print "\n<h2>" . _("Machine Owner") . "</h2>\n" .
"<p>" .
"<iMG SRC=\"/gifs/greendot.gif\" alt=\"\"><b>" . _("User key") . ":</b> <inPUT NAME=\"key\" SIZE=60 MAXLENGTH=160>\n" .
"<P>\n" .
_("MUST BE FILLED IN") . "!<br>\n" .
_("Your key is something like \"1234-56789\", and was emailed to you when you registered. If you don't have it, visit the") . " <a href=\"/login.php\">" . _("login page") . "</a> " . _("and follow instructions.") .
"\n</div>\n" .
"<HR>\n";

print "<h2>" . _("Information about the machine you are using") . "</h2>\n" .
"<P>\n" .
"<table border=4>\n" .
"<tr><td>\n" .
"<iMG SRC=\"/gifs/reddot.gif\" alt=\"\"><B>" . _("Name") . ":</B>\n" .
"<td> <inPUT NAME=\"name\" SIZE=40 MAXLENGTH=256>\n";

print "<TD>" . _("DNS name of machine if it has one. Otherwise, what you call it.") .
"\n<BR>\n" .
"<TR><TD>\n" .

"  <iMG SRC=\"/gifs/yellowdot.gif\" alt=\"\"><B>" . _("Country") . ":</b><td>\n" .
"  <input NAME=\"country\" SIZE=2 MAXLENGTH=2>\n" .
"<TD>" . _("ISO 3166 two-letter country code") . "<br>\n" .
"  <a href=\"/field-guide.php#country\">" . _("More info") . "</a><br>\n" .
"  <a href=\"http://www.chemie.fu-berlin.de/diverse/doc/ISO_3166.html\">\n" .
_("Complete list") . "</a>\n" .
"<br>\n";

print "<tr><td>\n" .
  "<iMG SRC=\"/gifs/yellowdot.gif\" alt=\"\"><B>" . _("Purpose") . ":</b><td>\n" .
"<table>\n" .
"<tr>\n" .
"<td><input name=\"purpose\" type=checkbox value=\"Workstation\">" . _("Workstation") .
"\n<td><input name=\"purpose\" type=checkbox value=\"WWW server\">" . _("WWW server") .
"\n<td><input name=\"purpose\" type=checkbox value=\"FTP server\">" . _("FTP server") .
"\n<tr>" .
"\n<td><input name=\"purpose\" type=checkbox value=\"Mail server\">" . _("Mail server") .
"\n<td><input name=\"purpose\" type=checkbox value=\"DNS server\">" . _("DNS server") .
"\n<td><input name=\"purpose\" type=checkbox value=\"File server\">" . _("File server") .
"\n<tr>" .
"\n<td><input name=\"purpose\" type=checkbox value=\"Database server\">" . _("Database server") .
"\n<td><input name=\"purpose\" type=checkbox value=\"Router\">" . _("Router") .
"\n<td><input name=\"purpose\" type=checkbox value=\"Firewall\">" . _("Firewall") .
"\n<tr>" .
"\n<td><input name=\"purpose\" type=checkbox value=\"Toy\">" . _("Toy") .
"\n<td><input name=\"purpose\" type=checkbox value=\"Learning\">" . _("Learning") .
"\n<td><input name=\"purpose\" type=checkbox value=\"Programming\">" . _("Programming") .
"\n<tr>" .
"\n<td><input name=\"purpose\" type=checkbox value=\"Game server\">" . _("Game server") .
"\n<td><input name=\"purpose\" type=checkbox value=\"Media center\">" . _("Media center") .
"\n<td><input name=\"purpose\" type=checkbox value=\"Other server\">" . _("Other server") .
"\n<tr>" .
"\n<td colspan=3><input NAME=\"purpose\" SIZE=55 MAXLENGTH=40>" .
"\n</table>" .
"\n<td>" . _("What you use this machine for. Mark one or more, or write your own description.") . "<br>\n";

print "<tr><td>\n" .
"<iMG SRC=\"/gifs/reddot.gif\" alt=\"\"><B>" . _("System class") . ":</b><td>\n" .
"<select name=\"sysclass\">" .
"\n<option value=\"\">-- " . _("Not specified") . " --" .
"\n<option value=\"handheld\">" . _("Handheld") .
"\n<option value=\"laptop\">" . _("Laptop") .
"\n<option value=\"workstation\">" . _("Workstation") .
"\n<option value=\"server\">" . _("Server") .
"\n<option value=\"embedded\">" . _("Embedded system") .
"\n<option value=\"other\">" . _("None of the above") .
"\n</select>" .
"\n<input name=\"sysclass\" size=30 maxlength=40>" .
"\n<td>" . _("Type of box. Give details if needed.");

print "\n<tr><td>" .
"\n<iMG SRC=\"/gifs/reddot.gif\" alt=\"\"><B>" . _("CPU") . ":</b><td>" .
"\n<input name=\"cpu\" size=30 maxlength=45>" .
"\n<TD>" . _("Write as \"Maker Model/Speed\" if number of CPU's equals 1") . "<br>\n" .
_("Write as \"(number of CPU's)x Maker Model/Speed\" in other cases.") . "<br>\n" .
_("Example") . ": 2x Intel Pentium 4/1800" .
"\n<br>";

print "\n<tr><td>" .
"\n<iMG SRC=\"/gifs/reddot.gif\" alt=\"\"><B>" . _("Memory") . ":</b><td>" .
"\n<inPUT NAME=\"memory\" SIZE=6 MAXLENGTH=6> MBytes" .
"\n<TD>" . _("Number of MBytes of memory installed") . " - <b>" . _("number only") . "</b>" .
"\n<br>";

print "\n<tr><td>" .
"\n<iMG SRC=\"/gifs/reddot.gif\" alt=\"\"><B>" . _("Disk") . ":</b><td>" .
"\n<inPUT NAME=\"disk\" SIZE=8 MAXLENGTH=8> MBytes" .
"\n<TD>" . _("Number of MBytes of disk installed") . " - <b>" . _("number only") . "</b>" .
"\n<br>";

print "\n<tr><td>" .
"\n<iMG SRC=\"/gifs/reddot.gif\" alt=\"\"><B>" . _("Network") . ":</b><td>" .
"\n<select name=\"network\">" .
"\n<option value=\"None\" selected>" . _("None") .
"\n<option value=\"Ethernet\">Ethernet" .
"\n<option value=\"PPP\">PPPi " . _("dialup") .
"\n<option value=\"SLIP\">SLIP " . _("dialup") .
"\n<option value=\"AX.25\">AX.25 " . _("amateur radio") .
"\n<option value=\"ISDN\">ISDN" .
"\n<option value=\"Token Ring\">Token Ring" .
"\n<option value=\"UUCP\">UUCP" .
"\n<option value=\"Wireless 802.11\">" . _("Wireless 802.11a, 802.11b or 802.11g") .
"\n<option value=\"ATM\">ATM" .
"\n<option value=\"ADSL\">ADSL" .
"\n<option value=\"DSL\">DSL" .
"\n<option value=\"SDSL\">SDSL" .
"\n<option value=\"Other\">" . _("Other (give details below)") .
"\n</select>" .
_("Primary network") .
"\n<br>";
print "<select name=\"network\">" .
"\n<option value=\"\" selected>" . _("None") .
"\n<option value=\"Ethernet\">Ethernet" .
"\n<option value=\"PPP\">PPP " . _("dialup") .
"\n<option value=\"SLIP\">SLIP " . _("dialup") .
"\n<option value=\"AX.25\">AX.25 " . _("amateur radio") .
"\n<option value=\"ISDN\">ISDN" .
"\n<option value=\"Token Ring\">Token Ring" .
"\n<option value=\"UUCP\">UUCP" .
"\n<option value=\"Wireless 802.11\">" . _("Wireless 802.11a, 802.11b or 802.11g") .
"\n<option value=\"ATM\">AT" .
"\n<option value=\"ADSL\">ADSL" .
"\n<option value=\"DSL\">DSL" .
"\n<option value=\"SDSL\">SDSL" .
"\n<option value=\"Other\">" . _("Other (give details below)") .
"\n</select>\n" .
_("Secondary network (if any)") .
"\n<br>" .
"\n<INPUT NAME=\"network\" SIZE=20 MAXLENGTH=50>" . _("Specify here if \"other\"") .
"\n<TD>" . _("Type of network hardware") . "<br>";

print "\n<tr><td>" .
"\n<iMG SRC=\"/gifs/reddot.gif\" alt=\"\"><B>" . _("Distribution") . ":</b><td>" .
"\n<input name=\"distribution\" size=20 maxlength=40>" .
"\n<br>" .
"\n<TD>" . _("What distribution (install kit) you used") .
"\n<br>";

print "\n<tr><td>" .
"\n<iMG SRC=\"/gifs/reddot.gif\" alt=\"\"><B>" . _("Source") . ":</b><td>" .
"\n<inPUT NAME=\"source\" SIZE=30 MAXLENGTH=50>" .
"\n<TD>" . _("Where you fetched Linux for your last full install.") ."<br>\n" .
_("Use, for instance, \"CD/CDvendor\" or \"FTP/ftp.site.org\".") .
"\n<br>";

print "\n<tr><td>" .
"\n<iMG SRC=\"/gifs/reddot.gif\" alt=\"\"><B>" . _("Mailer") . ":</b><td>" .
"\n<select name=\"mailer\">" .
"\n<option value=\"\">" . _("Not specified") .
"\n<option value=\"none\">" . _("No mailserver") .
"\n<option value=\"sendmail\">Sendmail" .
"\n<option value=\"smail\">Smail" .
"\n<option value=\"qmail\">Qmail" .
"\n<option value=\"exim\">Exim" .
"\n<option value=\"postfix\">Postfix" .
"\n<option value=\"\">" . _("Other - give details") .
"\n</select>" .
"\n<inPUT NAME=\"mailer\" SIZE=30 MAXLENGTH=40>" .
"\n<TD>" . _("Type of mail server installed on this system") .
"\n<br>";

print "\n<tr><td>" .
"\n<iMG SRC=\"/gifs/reddot.gif\" alt=\"\"><B>" . _("Users") . ":</b><td>" .
"\n<inPUT NAME=\"users\" SIZE=5 MAXLENGTH=7>" .
"\n<TD>" . _("Number of persons who use this machine regularly") .
"\n<br>";

print "\n<tr><td>" .
"\n<iMG SRC=\"/gifs/reddot.gif\" alt=\"\"><B>" . _("Accounts") . ":</b><td>" .
"\n<inPUT NAME=\"accounts\" SIZE=5 MAXLENGTH=7>" .
"\n<TD>" . _("Number of accounts in /etc/passwd, not counting root and so on") .
"\n<BR>" .
"\n</table>" .
"\n<p>" .
"\n<div id=\"buttons\">" .
"\n<inPUT TYPE=\"submit\" VALUE=\"" . _("Send registration") . "!\">" .
"\n<inPUT TYPE=\"reset\" VALUE=\"" . _("Clear form") . "\">" .
"\n</div>" .
"\n</FORM>\n";

pagebottom("yes");
print "\n</body>" .
"\n</html>";


